package domain

type SearchTableDataParam struct {
	PageNum       int    `json:"pageNum"`
	PageSize      int    `json:"pageSize"`
	Other         any    `json:"other"`
	OrderByColumn string `json:"orderByColumn,omitempty"`
	IsAsc         string `json:"isAsc,omitempty"`
	Params        Params `json:"params"`
}
type Params struct {
	BeginTime string `json:"beginTime"`
	EndTime   string `json:"endTime"`
}

type TableDataInfo struct {
	Total   int64 `json:"total,omitempty"`
	Content any   `json:"content,omitempty"`
}

func Success(content any, total int64) TableDataInfo {
	return TableDataInfo{
		Total:   total,
		Content: content,
	}
}
